<?php
namespace app\admin\model;
use think\Model;
use think\facade\Config as Con;

class Config extends Model
{
    // 表名,不含前缀
    protected $name='config';
    public function getConfigsByWhere($where, $offset, $limit)
    {
        return $this->where($where)->limit($offset, $limit)->order('id desc')->select();
    }
    public function getAllConfigs($where)
    {
        return $this->where($where)->count();
    }


}